package com.mew.chess.core.game.qmcs.game.message;


import com.mew.chess.core.game.qmcs.game.common.QmcsUserBO;
import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@Data
@ToString
@NoArgsConstructor
public class EnterResponseMessage extends ZebraBaseMessage<EnterResponseMessage> {

    private int[] bets;
    private QmcsUserBO userMessage;
    private List<QmcsUserBO> userList;


    @Override
    public void write(ByteBuf b) {
        
        writeIntArray(b,bets);
        userMessage.write(b);
        writeInt(b,userList.size());
        for (QmcsUserBO qmcsUserBO : userList) {
            qmcsUserBO.write(b);
        }
    }

    @Override
    public EnterResponseMessage read(ByteBuf byteBuf) {
        return null;
    }
}
